#include "dut/Random.h"

void Dut::Random::GetInt(int* nos, int num, int min, int max)
{
	std::default_random_engine e;
	std::uniform_int_distribution<int> u(min, max);
	e.seed(time(0));

	for (int i = 0; i < num; i++)
	{
		nos[i] = u(e);
	}
}

void Dut::Random::GetFloat(float* fs, float num, float min, float max)
{
	std::default_random_engine e;
	std::uniform_real_distribution<float> u(min, max);
	e.seed(time(0));

	for (int i = 0; i < num; i++)
	{
		fs[i] = u(e);
	}
}